<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>博客类别修改</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="../../css/ht/ht-UserEdit.css">
</head>
<body style=" background-color: #EEF5F9;">
<?php
//session_start();
//if(!isset($_SESSION["adminname"]))
//    header("location:/final_project/login/login_ht.php?msg=您没有权限，请登录后访问！");
//?>

<?php
$tid = $_GET['tid'];
require ('../Common/db.php');
$sql = "select * from blogtype where tid={$tid}";
$result = mysql_query($sql) or die('查询失败！'.mysql_error());
$row = mysql_fetch_assoc($result);
?>
<?php require ('../Common/nav.php')?>
<!--  内容部分-->
<div class="title">
    <span><i>博客类别修改</i></span>
</div>
<div class="content" >
    <!--  左边内容starting    -->
    <div class="left">
        <h4 class="img_title" style="text-align: center">管理员头像:</h4>
        <div class="userImg">
<!--            <img src="../../images/user/--><?php //echo $row["pic"]; ?><!--" title="--><?php //echo $row["uname"]; ?><!--"-->
<!--                 alt="--><?php //echo $row["uname"] ?><!--" style="height: 250px;width: 300px;border-radius: 100%">-->
            <img src="../../images/user/1.jpg" alt="" style="height: 250px;width: 300px;border-radius: 100%">

        </div>
    </div>
    <!--左边内容ending-->
    <div class="right" >
        <form action="do_BlogSortEdit.php" method="post" enctype="multipart/form-data">
            <div class="form-group">
               <input type="hidden" name="tid" value="<?php echo $row["tid"];?>">
               <label for="example-email" class="col-md-12">类别修改</label>
                <div class="col-md-12">
                    <input type="text" name="typename" required="required" class="form-control form-control-line" placeholder="原类别：<?php  echo $row["typename"]; ?>...">
                </div>
            </div>

                    <div class="form-group">
                        <div class="col-sm-12">
                            <button class="btn btn-success" value="更新">更新</button>
                        </div>
                    </div>
        </form>
    </div>
</div>
</body>
</html>